package com.jeesite.modules.dataScreen.exceptions;

import lombok.Getter;

@Getter
public class BgManageException extends RuntimeException {

    private Integer code;

    private String message;

    public BgManageException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public static BgManageException newInstance(Integer code, String message) {
        return new BgManageException(code, message);
    }

    public static BgManageException newInstance(String message) {
        return new BgManageException(500, message);
    }
}
